import axios from '@/libs/api.request'

/* 房屋列表 */
export const houseList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctchouse/houseList',
    type: 'post',
    data: data
  })
}
/* 房屋详情 */
export const getById = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctchouse/getById',
    type: 'post',
    data: data
  })
}
/* 维修基金接口 */
export const getList = (data) => {
  return axios.request({
    url: '/api/uc/ctc/createPostService/getList',
    type: 'post',
    data: data
  })
}
/* 预售许可证查询 */
export const getLicence = (data) => {
  return axios.request({
    url: '/api/uc/ctc/createTokenService/getLicence',
    type: 'post',
    data: data
  })
}
/* 合同号查询 */
export const getContract = (data) => {
  return axios.request({
    url: '/api/uc/ctc/createTokenService/getContract',
    type: 'post',
    data: data
  })
}

/* 插入合同查询记录 */
export const createContractRecord = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcCreateHouseHistoryService/InsertContractRecord',
    type: 'post',
    data: data
  })
}
/* 插入许可证查询记录  */
export const createLicenceRecord = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcCreateHouseHistoryService/InsertLicenceRecord',
    type: 'post',
    data: data
  })
}

/* 插入维修基金查询记录 */
export const createFundRecord = (data) => {
  return axios.request({
    url: '/api/uc/ctc/ctcCreateHouseHistoryService/InsertFundRecord',
    type: 'post',
    data: data
  })
}
/* 维修基金 */
export const FundList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctchouse/fundList',
    type: 'post',
    data: data
  })
}
/* 许可证 */
export const LicenceList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctchouse/licenceList',
    type: 'post',
    data: data
  })
}
/* 合同 */
export const ContractList = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctchouse/contractList',
    type: 'post',
    data: data
  })
}
/* 获取合同详情 */
export const getContractById = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctchouse/getContractById',
    type: 'post',
    data: data
  })
}
/* 获取许可证详情 */
export const getLicenceById = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctchouse/getLicenceById',
    type: 'post',
    data: data
  })
}
/* 获取维修基金详情 */
export const getFundById = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctchouse/getFundById',
    type: 'post',
    data: data
  })
}
// 获取登陆信息
export const getUserinfo = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctcactinfodao/getCardInfo',
    type: 'get',
    data: data
  })
}
// 房源信息查询
export const findhousemsg = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctchouse/gethousemsglist',
    type: 'post',
    data: data
  })
}
// 提交信息
export const creatusermsg = (data) => {
  return axios.request({
    url: '/api/us/ctc/ctchouse/createuserhousemsg',
    type: 'post',
    data: data
  })
}
